package com.guijq.selfcode.deadlock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author yangjf
 * @time 2019-05-10 10:06
 */
public class BaseObj {

    private ReentrantLock reentrantLock = new ReentrantLock();

    public void lock() {
        reentrantLock.lock();
    }

    public void unlock() {
        reentrantLock.unlock();

    }
}
